<template>
  <div class="lottery-extractor">
    <div style="display: flex">
      <div style="padding: 20px; width: 100%;">
        <span>注码数：</span><el-input placeholder="请输入数码数" class="input-with-select"
          style="width: 30%; margin: 3px 0 10px 0" v-model="sampleSize"></el-input>
        <el-button type="primary" style="width: 10%; margin: 3px 0 10px 1.5%" @click="getSample">获取</el-button>
        <el-row style="height: 100%;">
          <div class="dis-flex">
            <el-input type="textarea" v-model="inputText" :autosize="{ minRows: 20, maxRows: 48 }">
            </el-input>
          </div>
        </el-row>
      </div>
    </div>
  </div>
</template>

<script>
  import {
    getSampleData
  } from "@/api/bussiness";

  export default {

    data() {
      return {
        inputText: "",
        sampleSize: ""
      };
    },

    mounted() {

    },
    methods: {
      getSample() {
        getSampleData({
          sampleSize: this.sampleSize
        }).then(res => {
          if (res.code == 200) {
            this.inputText = res.data
          }
        });
      }
    },
  };
</script>
